package canglang.scan.erecord.model;

import canglang.scan.core.base.model.BaseModel;
import canglang.scan.core.base.util.StringUtil;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Date;

@SuppressWarnings("unchecked")
public class ErecordModel extends BaseModel {

    private static final long serialVersionUID = 9036686363555253391L;

    private int recordId;

    private String recordName;

    private String recordType;

    private String selectId;

    protected String uploadContentType;

    protected String uploadFileName;

    protected File upload;

    protected byte[] uploadContent;

    protected String insertContentType;

    protected String insertFileName;

    protected File insert;

    protected byte[] insertContent;

    private String selectPageNum;

    private String printArray;

    private String deletePassword;

    private int year;

    private String refNo;

    private String source;

    private String appellee;

    private String undertaker;

    private Date caseDate;

    private String remark;

    private String caseReason;

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getYearStr() {
        if (year==0) return "";
        return String.valueOf(year);
    }

    public void setYearStr(String year) {
        if (StringUtil.isNullOrBlank(year)) this.year=0;
        else this.year=Integer.parseInt(year);
    }


    public String getRefNo() {
        return refNo;
    }

    public void setRefNo(String refNo) {
        this.refNo = refNo;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getAppellee() {
        return appellee;
    }

    public void setAppellee(String appellee) {
        this.appellee = appellee;
    }

    public String getUndertaker() {
        return undertaker;
    }

    public void setUndertaker(String undertaker) {
        this.undertaker = undertaker;
    }

    public Date getCaseDate() {
        return caseDate;
    }

    public void setCaseDate(Date caseDate) {
        this.caseDate = caseDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCaseReason() {
        return caseReason;
    }

    public void setCaseReason(String caseReason) {
        this.caseReason = caseReason;
    }

    public String getDeletePassword() {
        return deletePassword;
    }

    public void setDeletePassword(String deletePassword) {
        this.deletePassword = deletePassword;
    }

    public String getPrintArray() {
        return printArray;
    }

    public void setPrintArray(String printArray) {
        this.printArray = printArray;
    }

    public String getSelectPageNum() {
        return selectPageNum;
    }

    public void setSelectPageNum(String selectPageNum) {
        this.selectPageNum = selectPageNum;
    }

    public int getRecordId() {
        return recordId;
    }

    public void setRecordId(int recordId) {
        this.recordId = recordId;
    }

    public String getRecordName() {
        return recordName;
    }

    public void setRecordName(String recordName) {
        this.recordName = recordName;
    }

    public String getRecordType() {
        return recordType;
    }

    public void setRecordType(String recordType) {
        this.recordType = recordType;
    }

    public String getSelectId() {
        return selectId;
    }

    public void setSelectId(String selectId) {
        this.selectId = selectId;
    }

    public String getUploadContentType() {
        return uploadContentType;
    }

    public void setUploadContentType(String uploadContentType) {
        this.uploadContentType = uploadContentType;
    }

    public String getUploadFileName() {
        return uploadFileName;
    }

    public void setUploadFileName(String uploadFileName) {
        this.uploadFileName = uploadFileName;
    }

    public File getUpload() {
        return upload;
    }

    public void setUpload(File upload) {
        this.upload = upload;
    }

    public byte[] getUploadContent() {
        return uploadContent;
    }

    public void setUploadContent(byte[] uploadContent) {
        this.uploadContent = uploadContent;
    }

    public String getInsertContentType() {
        return insertContentType;
    }

    public void setInsertContentType(String insertContentType) {
        this.insertContentType = insertContentType;
    }

    public String getInsertFileName() {
        return insertFileName;
    }

    public void setInsertFileName(String insertFileName) {
        this.insertFileName = insertFileName;
    }

    public File getInsert() {
        return insert;
    }

    public void setInsert(File insert) {
        this.insert = insert;
    }

    public byte[] getInsertContent() {
        return insertContent;
    }

    public void setInsertContent(byte[] insertContent) {
        this.insertContent = insertContent;
    }
}
